<template>
  <el-container>
    <el-header>
      <el-row>
        <el-col :span="6">
          <div class="grid-content bg-purple">
            <div class="header-left">
              <a href="javascript:;">
                <img
                  src="//cimg.zhaopin.cn/img/newIndexImages/logo.png"
                  alt=""
                >
              </a>
            </div>
          </div>
        </el-col>
        <el-col :span="18">
          <div class="grid-content bg-purple-light">
            <div class="header-right">
              <div>
                <a
                  href="javascript:;"
                  @click="backhome"
                >
                  <span class="el-icon-s-home"></span>
                  首页
                </a>
              </div>
              <div>
                您好! | 用户名
              </div>

            </div>
          </div>
        </el-col>
      </el-row>
    </el-header>
    <el-main>
      <div class="main-header">
        <!-- <div class="main-header-left">
                        <span class="el-icon-s-data"></span>
                        文章列表
                    </div>
                    <div class="main-header-right">
                        共11篇
                    </div> -->
        留言信息
      </div>
      <el-divider></el-divider>
      <div class="main-mid">
        <div class="title">有什么新鲜事想跟大家说？</div>
        <el-form
          :model="addForm"
          ref="addFormRef"
        >
          <el-form-item prop="news">
            <el-input
              placeholder="请输入内容"
              v-model="addForm.news"
              type="textarea"
              :rows="4"
              @input="change($event)"
            ></el-input>
          </el-form-item>
          <el-button
            type="primary"
            @click="onSubmit"
          >立即发表</el-button>
        </el-form>
      </div>
      <el-divider></el-divider>
      <div class="main-bottom">
      </div>
    </el-main>
    <el-footer>Footer</el-footer>
  </el-container>
</template>

<script>
export default {
  data () {
    return {
      addForm: {
        news: '',
      },
      comments: ''
    }
  },
  methods: {
    change (e) {
      this.$forceUpdate();
    },
    backhome () {

    },
    onSubmit () {

    },
    getCommentList () {

    }
  },
  created () {
    this.getCommentList()
  }
}
</script>

<style lang="less" scoped>
.el-header {
  background-color: #000;
  .header-left {
    margin-top: 12px;
  }
  .header-right {
    float: right;
    margin-right: 250px;
    div {
      float: left;
      font-size: 16px;
      height: 60px;
      line-height: 60px;
      margin-right: 40px;
      color: #fff;
      a {
        text-decoration: none;
        color: #fff;
      }
    }
  }
}

.el-main {
  width: 1000px;
  height: 1000px;
  margin: 0 auto;
  margin-top: 50px;
  border-radius: 10px;
  background-color: #ccc;
  .main-header {
    // height: 50px;
    margin: 20px auto 10px;
    // .main-header-left{
    //     float: left;
    //     height: 50px;
    //     line-height: 50px;
    // }
    // .main-header-right{
    //     float: right;
    //     height: 50px;
    //     line-height: 50px;
    // }
  }
  .main-mid {
    height: 200px;
    // background-color: #666;
    // border-bottom: 1px solid #000;
    .title {
      color: blue;
      height: 50px;
      line-height: 50px;
      float: left;
    }
    .el-button {
      float: right;
    }
  }
}
</style>